import request from 'umi-request';
import { useEffect } from 'react';

const Index = () => {
  useEffect(() => {
    request
      .get('/api/users')
      .then((response) => {
        console.log(response);
      })
      .catch((error) => {
        console.log(error);
      });
  }, []);

  return (
    <>
      <h2>数据请求</h2>
    </>
  );
};

export default Index;
